![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
mongodb-download
Advanced tools
downloads a MongoDB release zip/tgz from MongoDB
$ npm install --global mongodb-download
$ mongodb-download --version=3.0.6
let {MongoDBDownload} = require('mongodb-download');
let mongoDBDownload: any = new MongoDBDownload({});
mongoDBDownload.download().then((downloadLocation: string) => {
console.log(`Downloaded MongoDB: ${downloadLocation}`);
}, (err: any) => {
throw err;
});
if you don't specify arch
or platform
args it will use require('os')
to get them from the current OS.
MongoDB version to download, "latest" is by default
32 or 64 bit version architecture, possible values: ia32 or x64
Target platform of a download, possible values: "win32", "darwin", "osx", "linux" or "elementary OS"
Download path
Additional options that are going to be passed to http library, such as "agent".
let {MongoDBDownload} = require('mongodb-download');
let httpsProxyAgent = require('https-proxy-agent');
var proxyUrl = "https://localhost:3128";
var proxyAgent = new httpsProxyAgent(proxy_url);
let mongoDBDownload: any = new MongoDBDownload({
version: '3.0.6',
http: {
agent: proxyAgent
}
});
FAQs
download mongodb prebuilt packages from mongodb
The npm package mongodb-download receives a total of 20,139 weekly downloads. As such, mongodb-download popularity was classified as popular.
We found that mongodb-download demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.